package com.hopu.mybatis02.mapper;

import com.hopu.mybatis02.pojo.Chapter;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ChapterMapper {
    /**
     * 根据id信息查询章节列表
     * @param bookId
     * @return
     */
    @Select("select * from t_chapter where book_id =#{bookId}")
    List<Chapter> selectChapterListByBookId(long bookId);
}
